package Chapter05;

import java.util.Scanner;

/**
 * Created by a on 2017/6/10.
 */
public class Test084 {
    public static void main(String[] args) {
        System.out.println("请输入要哦转换的温度");
        Scanner scanner = new Scanner(System.in);
        double centigrade = scanner.nextDouble();
        Temperature temperature = new Temperature();
        double fahrenheit = temperature.toFahrenheit(centigrade);
        System.out.println(fahrenheit);
    }

}

class Temperature{
    public double toFahrenheit(double centigrade){
        double fahreheit = 1.8*centigrade+32;
        return fahreheit;
    }
}